<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>情侣说贴吧</title>
    <meta charset="UTF-8">
    <meta name="keywords" content="情侣说贴吧,情侣说贴吧，情侣说贴吧">
    <meta name="description" content="情侣说贴吧提供帖子速览及今日新帖列表"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="mobile-agent" content="format=html5;url=http://m.hanzhong123.com/bbs/">
    <link rel="stylesheet" href="http://img.pccoo.cn/x7/bbsv6/css/common_v6.css" type="text/css"/>
    <link rel="stylesheet" href="http://img.pccoo.cn/x7/bbsv6/css/topiclist.css" type="text/css"/>
    <link href="http://img.pccoo.cn/x7/bbsv6/css/tieba_v7.css" rel="stylesheet" type="text/css"/>

    <script type="text/javascript" src="js/jquery.min.js"></script>
    <link href="/css/bootstrap.min.css" rel="stylesheet">


    <script>
       function orderByTime() {
            alert("ok");
            $.ajax({
                url:"note/orderByTime",
                success:function (result) {

                }
            })
       }


        function orderByCreatedTime(){
            console.log("ca12312e32as1d32");

            $.ajax({
                url:"/note/orderByCreatedTime",
                success:function(result){

                }
            });

        }

        //加载完成页面立刻执行函数
        $(function () {
            doGetObjects();
        })

        //异步的进行获取帖子信息
        function doGetObjects() {
            //1.定义请求参数
            var pageCurrent=$("#pageId").data("pageCurrent");
            if(!pageCurrent)pageCurrent=1;//当没有值时，默认为第一页
            //参数拼接方法
            var params={"pageCurrent":pageCurrent};
            var uname=$("#searchNameId").val();
            if(uname)params.username=uname;

            //2.定义请求
            var url="note/doFindPageObjects";
            //3.发送异步请求处理数据
            alert("加载完成");
            $.getJSON(url,params,function(result){
                doHandleQueryResult(result);
            });
        }

        //处理响应的信息
        function doHandleQueryResult(result) {
            if(result.state==1){//正常
                //1.将result中的日志记录呈现在页面上的tbody位置
                doSetTableBodyRows(result.data.records);
                //result.data.records表示帖子记录
                //2.将result中的分页信息呈现的页面的pageId位置
                doSetPagination(result.data);//pageObject
            }
        }


        //将用户行为日志呈现在指定的元素位置
        function doSetTableBodyRows(records){
            //1.获取tbody对象，并清空原有内容
            var tBody=$("#tbodyId");
            tBody.empty();
            //2.迭代records记录，并将结果追加到tbody中
            for(let i=0;i<records.length;i++) {
                tBody.append(doCreateRow(records[i]));
            }

        }

        //创建行
        function doCreateRow(row){
            return `<tr>
	            <td><input type='checkbox' class='cBox' value='${row.id}'></td>
	            <td>${row.username}</td>
	            <td>${row.method}</td>
	            <td>${row.params}</td>
	            <td>${row.ip}</td>
	            <td>${row.time}</td>
	           </tr>`;
        }



        <!--论坛搜索-->
        function Getsearch() {
            var keys = $("#keywords").val();
            if (keys == "搜索其实很简单(*^__^*)" || keys == "") {
                alert('请输入搜索关键字');
                $("#keywords").focus();
                return false;
            }
        }
    </script>
</head>
<body>
<div id="top">
    <div class="topk">
        <div class="top_left">
            <div><a href='/static' class='nav_ct_01'>门户首页>></a></div>
            <div class='top_nav_line'>&#160;</div>
            <div class='topnav'><a href='/forum/'>论坛</a>
                <div>
                    <ul>
                        <li><img src='http://c.imgccoo.cn/images/ico/ico0.gif'><a href='/tieba/sitemap.asp'>板块导航</a>
                        </li>
                        <li><img src='http://c.imgccoo.cn/images/ico/ico0.gif'><a href='/tieba/'>今日新帖</a></li>
                        <li><img src='http://c.imgccoo.cn/images/ico/ico0.gif'><a href='/forum/photo.asp'>美图欣赏</a></li>
                        <li><img src='http://c.imgccoo.cn/images/ico/ico0.gif'><a href='/forum/mood.asp'>每日心情</a></li>
                    </ul>
                </div>
            </div>
            <div class='top_nav_line'><span>|</span></div>
            <div class='topnav'><a href='/post/'>分类</a>
                <div>
                    <ul>
                        <li><img src='http://c.imgccoo.cn/images/ico/ico0.gif'><a href='/post/job/'>招聘</a></li>
                        <li><img src='http://c.imgccoo.cn/images/ico/ico0.gif'><a href='/post/fangwu/'>房屋</a></li>
                        <li><img src='http://c.imgccoo.cn/images/ico/ico0.gif'><a href='/post/ershou/'>二手</a></li>
                    </ul>
                </div>
            </div>
            <div class='top_nav_line'><span>|</span></div>
            <div class='topnav'><a href='/store/'>逛街</a>
                <div>
                    <ul>
                        <li><img src='http://c.imgccoo.cn/images/ico/ico0.gif'><a href='/cuxiao/'>促销</a></li>
                        <li><img src='http://c.imgccoo.cn/images/ico/ico0.gif'><a href='/tejia/'>特价</a></li>
                        <li><img src='http://c.imgccoo.cn/images/ico/ico0.gif'><a href='/tuan/'>团购</a></li>
                        <li><img src='http://c.imgccoo.cn/images/ico/ico0.gif'><a href='/wed/'>婚嫁</a></li>
                        <li><img src='http://c.imgccoo.cn/images/ico/ico0.gif'><a href='/home/'>家居</a></li>
                        <li><img src='http://c.imgccoo.cn/images/ico/ico0.gif'><a href='/hotel/'>酒店</a></li>
                    </ul>
                </div>
            </div>
            <div class='top_nav_line'><span>|</span></div>
            <div class='topnav'><a href='/bendi/'>百科</a>
                <div>
                    <ul>
                        <li><img src='http://c.imgccoo.cn/images/ico/ico0.gif'><a href='/bendi/history.html'>历史</a></li>
                        <li><img src='http://c.imgccoo.cn/images/ico/ico0.gif'><a href='/bendi/culture.html'>文化</a></li>
                        <li><img src='http://c.imgccoo.cn/images/ico/ico0.gif'><a href='/bendi/travel.html'>旅游</a></li>
                        <li><img src='http://c.imgccoo.cn/images/ico/ico0.gif'><a href='/bendi/techan.html'>特产</a></li>
                        <li><img src='http://c.imgccoo.cn/images/ico/ico0.gif'><a href='/bendi/eat.html'>美食</a></li>
                        <li><img src='http://c.imgccoo.cn/images/ico/ico0.gif'><a href='/bendi/xiaqu.html'>辖区</a></li>
                        <li><img src='http://c.imgccoo.cn/images/ico/ico0.gif'><a href='/meishi/'>美食</a></li>
                    </ul>
                </div>
            </div>
            <div class='top_nav_line'><span>|</span></div>
            <div class='topnav'><a href='/yp/'>黄页</a>
                <div>
                    <ul>
                        <li><img src='http://c.imgccoo.cn/images/ico/ico0.gif'><a href='/yp/all/'>黄页大全</a></li>
                        <li><img src='http://c.imgccoo.cn/images/ico/ico0.gif'><a href='/phonebook/'>电话查询</a></li>
                    </ul>
                </div>
            </div>
            <div class='top_nav_line'><span>|</span></div>
            <div class='top_midd'><a class='m' href='/wap/'>下载APP</a></div>
        </div>
        <div class="land"></div>
    </div>
</div>
<div class="board_box">
    <div class="tieba_position">
        <div class="tieba_dh">
            <div class="tieba_dhbt">
                <ul>
                    <li class="tieba_tiezi"><a href="note.html" class="active">帖子</a></li>
                    <li class="tieba_tupian"><a href="" onclick="findPicture()" >图片</a></li>
                    <li class="tieba_dhguanzhu"><a href="">今日关注</a></li>
                </ul>
            </div>
            <div class="tieba_fatie"><a onClick="sLogin();" rel="nofollow">发表新帖</a></div>
        </div>
    </div>
    <div id="topic_new">
        <table width="980" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td id="topiclist" valign="top">
                    <div class="tieba_fabu">
                        <div class="tieba_time">
                            <ul>
                                <li > <a href="#" onClick="orderByTime()">回复时间</a> </li>
                                <li><a href="#" onClick="orderByCreatedTime()">发帖时间</a></li>
                                <li><a href="#">今日发帖</a></li>
                                <li><a href="#">3日内发帖</a></li>
                                <li><a href="#">7日内发帖</a></li>
                            </ul>
                        </div>
                        <div class="tieba_banben">
                            <ul>
                                <li class="tieba_banben1">
                                    <a  class="active" title="切换到贴吧图文版">
                                    </a>
                                </li>
                                <li class="tieba_banben2">
                                    <a  title="切换到贴吧无图版">
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </div>


                    <div date-TopEndTime="" class="topicshow">
                        <div class="topic_show_l">
                            <div class="topic_show_num" title="点击:10806回复:0"><span><font color=red>10806</font>/0</span> </div>
                            <div class="topic_show_con">
                                <div class="topic_show_tit">
                                    <a  title="汉中江边惊现奇异建筑" target="_blank">这里是title</a><span
                                        class="b4">推荐</span><span class="b6">值得一看</span><span></span>
                                </div>
                                <div class="topic_show_c">
                                    这里是内容    content
                                </div>
                                <div class="topic_show_img">
                                    <a  rel="nofollow" target="_blank">
                                        <img src='http://r5.pccoo.cn/bbs/20190703/2019070309484269721052_667_398_300x225(s).jpg' alt=汉中江边惊现奇异建筑>
                                    </a>
                                    <a rel="nofollow" target="_blank">
                                        <img src='http://r5.pccoo.cn/bbs/20190703/2019070309484303893747_653_391_300x225(s).jpg' alt=汉中江边惊现奇异建筑>
                                    </a>
                                    <a  rel="nofollow" target="_blank">
                                        <img src='http://r5.pccoo.cn/bbs/20190703/2019070309484323940851_660_389_300x225(s).jpg'alt=汉中江边惊现奇异建筑>
                                    </a>
                                </div>
                            </div>
                        </div>

                        <div class="topic_show_l" th:each="noteList : ${lists}">
                            <div class="topic_show_num" title="点击:10806回复:0"><span><font color=red>10806</font>/0</span> </div>
                            <div class="topic_show_con">

                                <div class="topic_show_tit">
                                    <a href="" title="汉中江边惊现奇异建筑" target="_blank" th:text="lists.title"> </a><span
                                        class="b4">推荐</span><span class="b6">值得一看</span><span></span>
                                </div>

                                <div class="topic_show_c" th:text="lists.content"></div>

                                <div class="topic_show_img" th:src="lists.findPicture"></div>

                            </div>
                        </div>



                        <div class="topic_show_r" th:each="noteList : ${lists}">
                            <div class="topic_show_user" style="width:110px;float:left">
                                <a href="" target="_blank"
                                   title="汪峰">汪峰</a><span></span>
                            </div>
                            <div class="topic_relpay_time" title="发帖时间" th:text="lists.createdTime">07-03 这里是    createdTime </div>

                            <div class="topic_show_relpay">--</div>
                            <div class="topic_relpay_time" title="最后回复时间"></div>
                        </div>

                        <div class="more_topic"><a href="index-2-1.html">更多精彩内容 点击翻到下一页>></a></div>

                    </div>


                    <div date-TopEndTime="" class="topicshow ">
                        <div class="pageId">
                        <nav aria-label="Page navigation">
                            <ul class="pagination">
                                <li>
                                    <a href="#" aria-label="Previous">
                                        <span aria-hidden="true">&laquo;</span>
                                    </a>
                                </li>
                                <li><a class="first">首页</a></li>
                                <li><a class="pre">上一页</a></li>
                                <li><a class="next">下一页</a></li>
                                <li><a class="last">尾页</a></li>
                                <li><a class="rowCount">总记录数(0)</a></li>
                                <li><a class="pageCount">总页数(0)</a></li>
                                <li><a class="pageCurrent">当前页(1)</a></li>
                                <li>
                                    <a href="#" aria-label="Next">
                                        <span aria-hidden="true">&raquo;</span>
                                    </a>
                                </li>
                            </ul>
                        </nav>
                        </div>
                    </div>
                </td>
            </tr>
        </table>
    </div>
</div>
<div id="search_v6">
    <form action="/forum/result.html" name="search" method="post" onSubmit="return Getsearch();">
        <div class="s_l"></div>
        <div class="search">
            <ul>
                <li>
                    <input type="text" name="keywords" id="keywords" class="txt"
                           onfocus="if(this.value=='搜索其实很简单(*^__^*)') {this.value='';}"
                           onBlur="if(this.value=='') {this.value='搜索其实很简单(*^__^*)';}" value="搜索其实很简单(*^__^*)"/>
                </li>
                <li class="radio">
                    <input name="method" type="radio" checked value="1"/>标题
                    <input name="method" type="radio" value="2"/>昵称
                </li>
                <li>
                    <input type="submit" class="serbtn" value="">
                </li>
            </ul>
            <dl>
                <dt>
                    <div class="advtip"></div>
                </dt>
            </dl>
        </div>
        <div class="s_r"></div>
    </form>
</div>

<div id="fix2">
    <ul>
        <li><a href="javascript:void(0);" onClick="sLogin();" class="bar_post">发帖</a><a
                href="javascript:window.location.reload();" class="bar_refresh">刷新</a><a href="#downs" class="bar_top">底部</a><a
                href="/tieba/sitemap.html" class="bar_history">导航</a>
            <a href="javascript:void(0);" onClick="sLogin();" class="bar_gz">关注</a><a href="#aa" class="bar_bott">顶部</a><a
                    href="javascript:void(0);" class="bar_close">关闭</a></li>
    </ul>
</div>
<a name="downs" id="downs" rel="nofollow"></a>
</body>
</html>


